// 分销
import http from "../common/http.js";

export default {
	
	// 新增修改备注
	modifyName: (data, needLoading) => {
		return http.GET("/user/update-remark-name", data, needLoading);
	},
	
  // 获取分销设置
  getShareSetting: (data, needLoading) => {
    return http.GET("/share/index", data, needLoading);
  },
  getInfo: (data, needLoading) => {
    return http.GET("/share/get-info", data, needLoading);
  },
  joinShare: (data, needLoading) => {
    return http.POST("/share/join", data, needLoading);
  },
  getCheckStatus: (data, needLoading) => {
    return http.GET("/share/check", data, needLoading);
  },
  getPrice: (data, needLoading) => {
    return http.GET("/share/get-price", data, needLoading);
  },
  getOrder: (data, needLoading) => {
    return http.GET("/share/get-order", data, needLoading);
  },
  getRechargeOrder: (data, needLoading) => {
    return http.GET("/share/get-recharge-order", data, needLoading);
  },
  getShareOrder: (data, needLoading) => {
    return http.GET("/share/get-share-order", data, needLoading);
  },
  getTeam: (data, needLoading) => {
    return http.GET("/share/get-team", data, needLoading);
  },
  getQrcode: (data, needLoading) => {
    return http.GET("/share/get-qrcode", data, needLoading);
  },
  cashDetail: (data, needLoading) => {
    return http.GET("/share/cash-detail", data, needLoading);
  },
  bindParent: (data, needLoading) => {
    return http.GET("/share/bind-parent", data, needLoading);
  },
  cash(data, needLoading) {
    return http.GET("/share/get-price", data, needLoading);
  },
  // 获取提现方式列表
  getWithdraw(data, needLoading) {
    return http.GET("/share/get-cash-method", data, needLoading);
  },
  // 删除提现方式
  delWithdraw(data, needLoading) {
    return http.POST("/share/del-cash-method", data, needLoading);
  },
  // 添加提现方式
  addWithdraw(data, needLoading) {
    return http.POST("/share/add-cash-method", data, needLoading);
  },
  // 佣金明细
  getUserShareMoney(data, needLoading) {
    return http.GET("/share/get-user-share-money", data, needLoading);
  },
  videoShareOrder: (data, needLoading) => {
    return http.GET("/video-goods/video-share-order", data, needLoading);
  },
};
